package cn.dong.order.feign;


import cn.dong.base.dto.MemberDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient("service-ucenter8160")
public interface MemberService {

    /**
     * 根据会员id获取会员信息，返回dto对象，用于其他服务调用
     * @param id
     * @return
     */
    @GetMapping("/api/ucenter/member/inner/member/getMemberById/{id}")
    MemberDto getMemberById(@PathVariable("id") String id);

}
